//
//  FashionNewsModel.m
//  花花时尚
//
//  Created by 霍文轩 on 15/8/24.
//  Copyright (c) 2015年 霍文轩. All rights reserved.
//

#import "FashionNewsModel.h"

@implementation FashionNewsModel
- (void)dealloc
{
    [_title release];
    [_thumb release];
    [_subtitle release];
    [_cat_logo release];
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.title forKey:@"title"];
    [aCoder encodeObject:[NSNumber numberWithInteger:self.contentid] forKey:@"contentid"];
    [aCoder encodeObject:self.subtitle forKey:@"subtitle"];
    [aCoder encodeObject:self.cat_logo forKey:@"cat_logo"];
    [aCoder encodeObject:self.thumb forKey:@"thumb"];    
}
- (id)initWithCoder:(NSCoder *)aDecoder{
    self = [super init];
    if(self){
        self.title = [aDecoder decodeObjectForKey:@"title"];
        self.contentid = [[aDecoder decodeObjectForKey:@"contentid"] integerValue];
        self.subtitle = [aDecoder decodeObjectForKey:@"subtitle"];
        self.cat_logo = [aDecoder decodeObjectForKey:@"cat_logo"];
        self.thumb = [aDecoder decodeObjectForKey:@"thumb"];
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
